<% include header.html %>
    <div class="container">
        <form class="col-sm-offset-4 col-sm-4 form-horizontal" role="form" method="post">
            <fieldset>
                <legend>用户注册</legend>
                <%- message %>
                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="username">用户名</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" id="username" name="username" placeholder="用户名" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="password1">密码</label>
                        <div class="col-sm-8">
                            <input type="password" class="form-control" id="password1" name="password" placeholder="密码" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label" for="password2">再次输入密码</label>
                        <div class="col-sm-8">
                            <input type="password" class="form-control" id="password2" name="password" placeholder="再次输入密码" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-4 col-sm-8">
                            <button type="submit" class="btn btn-primary">注册</button>
                        </div>
                    </div>
            </fieldset>
        </form>
    </div>
    <script type="text/javascript">
    var submitBtn = $('.btn'),
        passWord = $('#password1'),
        repPassWord = $('#password2');

    submitBtn.click(function() {
        if (passWord.val() != repPassWord.val()) {
            $('#password1').css("border","1px solid red");
            $('#password2').css("border","1px solid red");
            return false;
        }
    });
    </script>
    <% include footer.html %>
